package com.xzqwjw.taskmanager.fragment;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.Toast;

import com.xzqwjw.taskmanager.R;

/**
 * 标题Fragment
 */
public class TitleFragment extends Fragment {

  public TitleFragment() {

  }

  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_title, null);
    FrameLayout flTitle = (FrameLayout) view.findViewById(R.id.fl_title);
    flTitle.setOnClickListener(arg0 -> Toast.makeText(getActivity(), "我是标题栏", Toast.LENGTH_SHORT).show());
    return view;
  }

}